# -*- coding:utf-8 -*-
from database.db_business import DbBusiness
from common.my_time import MyTime
from common.my_file import MyFile
from base import Base
import glob
import jieba
import re
import hashlib
import urllib.parse
import time
import os
from common.macro_data import MacroData


class MacroBase(Base):

    macro = MacroData()
    def __init__(self, file_name):
        #pass
        Base.__init__(self, file_name)
        #self.macro = MacroData()

    def __del__(self):
        pass
    
    def recode_data(self, data_date, data_title, data_url, data_site):
        self.macro.add_macro_data(data_date, self.get_type(), data_title, data_url, data_site)

    
